package com.microservice.ribon.controller;

import com.microservice.ribon.service.RibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RibbonController {

    @Autowired
    private RibbonService ribbonService;
    @GetMapping("/hi/{name}")
    public String testHi(@PathVariable String name) {
        return ribbonService.hi(name);
    }

}
